#include "Config.h"

Config::Config(const char* path)
{
	ifstream ifs(path);
	string line;

	cout << "Reading configuration ...";

	while(getline(ifs,line))
	{
		line = fs_algo::strip(line);

		if(line.empty())
			continue;

		root.push_back(line);

		cout << " " << line;
	}

	cout << endl;

	classes.push_back("O");
	for(int i=0; i<(int)root.size(); i++)
	{
		classes.push_back(root[i]+"_B");
		classes.push_back(root[i]+"_I");
		classes.push_back(root[i]+"_L");
		classes.push_back(root[i]+"_U");
	}
}
